from lengthOfLongestSubstring import lengthOfLongestSubstring
def test_func():
    a = "abcabcbb"
    b = "bbbbb"
    c = "pwwkew"
    d = "aab"
    e = "abb"
    f = ""
    g = "a"
    h = "uqinntq"

    assert lengthOfLongestSubstring(a)==3
    assert lengthOfLongestSubstring(b)==1
    assert lengthOfLongestSubstring(c)==3
    assert lengthOfLongestSubstring(d)==2
    assert lengthOfLongestSubstring(e)==2
    assert lengthOfLongestSubstring(f)==0
    assert lengthOfLongestSubstring(g)==1
    assert lengthOfLongestSubstring(h)==4
def main():
    test1_string = "abcabcbb"
    test_string = "uqinntq"
    print(lengthOfLongestSubstring(test1_string))
if __name__ == "__main__":
    main()
